<?php

class Comingsoon extends Controller {
	
	function Comingsoon()
	{
		//Constructor
		parent::Controller();
		//$this->load->model('mapmodel');
		$this->load->model('usermodel');
		$this->load->model('wallmodel');
		$this->load->model('photomodel');
		$this->load->model('blogmodel');
		//$this->load->library('form_validation');
	}

	function index()
	{
		//$data['location'] = $this->mapmodel->getAllLocation();
		//$data['allwall'] = $this->wallmodel->getAllWall();
		$data['lastPhoto'] = $this->photomodel->getLastPhoto('photo_id desc', 0, 13);
		$data['eventPhoto'] = $this->photomodel->getPhotoType('event', 'datetime desc', 0, 13);
		$data['foodPhoto'] = $this->photomodel->getPhotoType('food', 'datetime desc', 0, 13);
		$data['travelPhoto'] = $this->photomodel->getPhotoType('travel', 'datetime desc', 0, 13);
		$data['popularPhoto'] = $this->photomodel->getPopular('votes_up desc', 0, 13);
		$data['lastUser'] = $this->usermodel->getLastUser();
		$data['lastBlog'] = $this->blogmodel->getLastBlog(10);
		$data['titlebar'] = 'Panoramap Coming Soon';
		$this->load->view('comingsoon_view', $data);
	}
	

}
/* End of file comingsoon.php*/
/* Location: application/controllers/comingsoon.php */